<?
//echo 'Upload_marker.php echo '; 
 		
//*************************need to write into database
			include ('data.php');
			$file = "upload/" . $imagepath;
			 $query = "insert into assets(project,filename,width,height,alt,type,size) VALUES ('$project_id','$file','$width','$height','$imagepath','$imagetype','$imagesize')";
			 $result = mysql_query($query);
if ( !$result )
{
	echo ( "<P>Error inserting asset: " . mysql_error() . "</P>" );
	echo '<p><a href="../ed03.php?project_id='.$project_id.' >click here to continue</a>';
}
else
{
	//echo '<p>asset successfully added to table</p>';
	//echo '<p><a href="../ed03.php?project_id='.$project_id.' >click here to continue</a>';

}
?>